import {http} from "@/core/common/HttpUtil";
import { SillyResult } from "@/core/entity/SillyResult";

export function getCategoryChartData () {
    return http.get<SillyResult>(`/sillyAdmin/dataBoard/count/categories`);
}

export function getUserChartData (params : object) {
    return http.get<SillyResult>(`/sillyAdmin/dataBoard/count/user`, {params});
}

export function getDateChartData () {
    return http.get<SillyResult>(`/sillyAdmin/dataBoard/count/date`);
}